<?php
/**
 * Created by PhpStorm.
 * User: vincentzhang
 * Date: 2018/5/4
 * Time: 17:31
 */
class MY_Exceptions extends CI_Exceptions
{
//    public function show_exception($exception)
//    {
//        $em = $exception->getFile() . ':' . $exception->getLine() . ':' . $exception->getMessage();
//        $ec = $exception->getCode() === 0 ? 1001 : $exception->getCode();
//        log_message('error',$ec."：".$em);
//        print_r($em);
////        ResponseBiz::output($success = false, $data = [], $em, $ec);
//
//    }
//
//    public function show_error($heading, $message, $template = 'error_general', $status_code = 500)
//    {
//        $em = $heading . $message;
//        $ec = 1002;
//        log_message('error',$ec."：".$em);
//        print_r($em);
////        ResponseBiz::output($success = false, $data = [], $em, $ec);
//    }
//
//    public function show_php_error($severity, $message, $filepath, $line)
//    {
//        $em = $severity . ':' . $message . ':' . $filepath . ':' . $line;
//        $ec = 1003;
//        log_message('error',$ec."：".$em);
//        print_r($em);
////        ResponseBiz::output($success = false, $data = [], $em, $ec);
//    }

}